﻿using System;
using System.Threading.Tasks;
using AbpOne.ToolKits.Extensions;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace AbpOne.HttpApi.Hosting {
    public class Program {
        public static async Task Main(string[] args) {
            await Host.CreateDefaultBuilder(args)
                .UseLog4Net() //使用扩展方法
                .ConfigureWebHostDefaults(builder => {
                    builder.UseIISIntegration()
                        .UseStartup<Startup>();
                }).UseAutofac().Build().RunAsync();
        }
    }
}